-
-
Notifications
You must be signed in to change notification settings - Fork 181
Static Code Analysis with Php Inspections (EA Extended) #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct addServer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably PhpStoms has incorrect definition in stubs, will revert this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. 1cb8f45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
Replacing
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this found automatically, I spent couple hours just fixing.
|
mt_* is basically new generation replacement. Hopefully I'll find time to write a PHP CS FIxer to automate this (like for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
Thanks, that's awesome. All that micro-optimizations will be rewarding for all our apps. |
|
Static Code Analysis is my tool: https://plugins.jetbrains.com/plugin/7622 (you'll need PhpStorm for it). And fixing done partially by those fixers: Quite lot of this is automated (not everything of course). |
|
SCA Tool is advanced one, but most probably you'll want to adjust it for your needs. Feel free to ask questions ) |
Static Code Analysis with Php Inspections (EA Extended)
|
Thanks @kalessil. I'll try it on my projects. |
UTs: passed
Non-functional changes, micro-optimizations